package com.shortvedio.media.service.impl;

import com.shortvedio.base.model.po.TaskVedio;
import com.shortvedio.base.mapper.TaskVedioMapper;
import com.shortvedio.media.service.TaskVedioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaskVedioServiceImpl implements TaskVedioService {
    @Autowired
    private TaskVedioMapper taskVedioMapper;

    @Override
    public List<TaskVedio> selectListByIndex(int shardTotal, int shardIndex,Integer count) {
        List<TaskVedio> taskVedios = taskVedioMapper.selectListByIndex(shardTotal, shardIndex);
        return taskVedios;
    }

    @Override
    public Integer deleteTaskVedio(Long id) {
        int delete = taskVedioMapper.deleteById(id);
        return delete;
    }

    @Override
    public List<TaskVedio> getPastDueList(int shardTotal, int shardIndex,Integer count) {
        List<TaskVedio> taskVedios = taskVedioMapper.selectListPastDue(shardTotal, shardIndex);
        return taskVedios;
    }
}
